package com.neu.cpsp.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.neu.cpsp.pojo.Department;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DepartmentMapper extends BaseMapper<Department>
{
    void deleteByDepartmentId(String departmentId);

    int insert(Department department);

    /**
     * 根据 departmentId 查找部门
     * @param departmentId
     * @return
     */
    Department selectByDepartmentId(String departmentId);

    List<Department> selectAll();
}
